FROM python:3.9.18
ADD . /usr/src/app
WORKDIR /usr/src/app
ENV TZ Asia/Shanghai

RUN chmod 777 /usr/src/app/cert/bin/cfssl_linux-amd64
RUN ln -s /usr/src/app/cert/bin/cfssl_linux-amd64 /usr/bin/cfssl

RUN chmod 777 /usr/src/app/cert/bin/cfssljson_linux-amd64
RUN ln -s /usr/src/app/cert/bin/cfssljson_linux-amd64 /usr/bin/cfssl-json

RUN chmod 777 /usr/src/app/cert/bin/kubectl
RUN ln -s /usr/src/app/cert/bin/kubectl /usr/bin/kubectl

RUN pip install -r requirements.txt

